package com.xxxcompany.world.dao;

import static org.junit.jupiter.api.Assertions.*;

import java.sql.SQLException;
import java.util.List;

import org.junit.jupiter.api.Test;

import com.xxxcompany.world.dao.impl.CountryDAOImpl;
import com.xxxcompany.world.entity.Country;

import junit.framework.TestCase;

class ICountryDAOTest {

	@Test
	void testFindAll() throws SQLException {
		
		ICountryDAO dao = new CountryDAOImpl();
		
		List<Country> list = dao.findAll();
		
		System.out.println(list);
		
		// 断言
		TestCase.assertNotNull(list);
		TestCase.assertTrue(list.size()>0);
	}

}